<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>InFact: infact::TypedMemberInitializer&lt; T &gt; Class Template Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">InFact
   
   </div>
   <div id="projectbrief">Interpreter and factory for easily creating C++ objects at run-time</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceinfact.html">infact</a>      </li>
      <li class="navelem"><a class="el" href="classinfact_1_1_typed_member_initializer.html">TypedMemberInitializer</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<div class="title">infact::TypedMemberInitializer&lt; T &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="infact::TypedMemberInitializer" --><!-- doxytag: inherits="infact::MemberInitializer" -->
<p>A concrete, typed implementation of the <a class="el" href="classinfact_1_1_member_initializer.html" title="An interface for data member initializers of members of a Factory-constructible object.">MemberInitializer</a> base class.  
 <a href="classinfact_1_1_typed_member_initializer.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="factory_8h_source.html">factory.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for infact::TypedMemberInitializer&lt; T &gt;:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classinfact_1_1_typed_member_initializer.png" usemap="#infact::TypedMemberInitializer&lt; T &gt;_map" alt=""/>
  <map id="infact::TypedMemberInitializer&lt; T &gt;_map" name="infact::TypedMemberInitializer&lt; T &gt;_map">
<area href="classinfact_1_1_member_initializer.html" title="An interface for data member initializers of members of a Factory-constructible object." alt="infact::MemberInitializer" shape="rect" coords="0,0,211,24"/>
</map>
 </div></div>

<p><a href="classinfact_1_1_typed_member_initializer-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classinfact_1_1_typed_member_initializer.html#a4736328841b5ab169acac7b2049142c4">TypedMemberInitializer</a> (const string &amp;name, T *member, bool required=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A concrete implementation of the <a class="el" href="classinfact_1_1_member_initializer.html" title="An interface for data member initializers of members of a Factory-constructible object.">MemberInitializer</a> base class, holding a pointer to a typed member that needs to be initialized.  <a href="#a4736328841b5ab169acac7b2049142c4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classinfact_1_1_typed_member_initializer.html#a883e4ce6b7191c74ac42a46449b54369">~TypedMemberInitializer</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classinfact_1_1_typed_member_initializer.html#aa3e873d6c512b552c15f9a6833802c3b">Init</a> (<a class="el" href="classinfact_1_1_stream_tokenizer.html">StreamTokenizer</a> &amp;st, <a class="el" href="classinfact_1_1_environment.html">Environment</a> *env)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes this instance based on the following tokens obtained from the specified <a class="el" href="classinfact_1_1_stream_tokenizer.html">StreamTokenizer</a>.  <a href="#aa3e873d6c512b552c15f9a6833802c3b"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">T *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classinfact_1_1_typed_member_initializer.html#ab786ff72080c4be52d8fac9de46850bb">member_</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename T&gt;<br/>
class infact::TypedMemberInitializer&lt; T &gt;</h3>

<p>A concrete, typed implementation of the <a class="el" href="classinfact_1_1_member_initializer.html" title="An interface for data member initializers of members of a Factory-constructible object.">MemberInitializer</a> base class. </p>
<p>This class holds a pointer to a particular type of data member from some <a class="el" href="classinfact_1_1_factory.html">Factory</a>-constructible class that it can initialize from a <a class="el" href="classinfact_1_1_stream_tokenizer.html">StreamTokenizer</a> instance.</p>
<dl class=""><dt><b>Template Parameters:</b></dt><dd>
  <table class="">
    <tr><td class="paramname">T</td><td>a type of data member from a <a class="el" href="classinfact_1_1_factory.html">Factory</a>-constructible class that this class can initialize by reading tokens from a <a class="el" href="classinfact_1_1_stream_tokenizer.html">StreamTokenizer</a> instance </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="factory_8h_source.html#l00290">290</a> of file <a class="el" href="factory_8h_source.html">factory.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a4736328841b5ab169acac7b2049142c4"></a><!-- doxytag: member="infact::TypedMemberInitializer::TypedMemberInitializer" ref="a4736328841b5ab169acac7b2049142c4" args="(const string &amp;name, T *member, bool required=false)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classinfact_1_1_typed_member_initializer.html">infact::TypedMemberInitializer</a>&lt; T &gt;::<a class="el" href="classinfact_1_1_typed_member_initializer.html">TypedMemberInitializer</a> </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T *&#160;</td>
          <td class="paramname"><em>member</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>required</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A concrete implementation of the <a class="el" href="classinfact_1_1_member_initializer.html" title="An interface for data member initializers of members of a Factory-constructible object.">MemberInitializer</a> base class, holding a pointer to a typed member that needs to be initialized. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>the name of the member to be initialized, as it should <a class="el" href="classinfact_1_1_factory.html#a8b2771ba4fac39a71cb1d0156ddba7b6">Factory::CreateOrDie</a> method </td></tr>
    <tr><td class="paramname">member</td><td>a pointer to a data member of a C++ class to be initialized, or nullptr if this initializer should only modify the <a class="el" href="classinfact_1_1_environment.html" title="An interface for an environment in which variables of various types are mapped to their values...">Environment</a> (providing a mapping between a name a value that might be used by a class&rsquo; <a class="el" href="classinfact_1_1_factory_constructible.html#abbcefaf8b2137f888ef133807cefe083">Init </a> method </td></tr>
    <tr><td class="paramname">required</td><td>whether this member is required to be initialized in a spec string </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="factory_8h_source.html#l00306">306</a> of file <a class="el" href="factory_8h_source.html">factory.h</a>.</p>

</div>
</div>
<a class="anchor" id="a883e4ce6b7191c74ac42a46449b54369"></a><!-- doxytag: member="infact::TypedMemberInitializer::~TypedMemberInitializer" ref="a883e4ce6b7191c74ac42a46449b54369" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classinfact_1_1_typed_member_initializer.html">infact::TypedMemberInitializer</a>&lt; T &gt;::~<a class="el" href="classinfact_1_1_typed_member_initializer.html">TypedMemberInitializer</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="factory_8h_source.html#l00308">308</a> of file <a class="el" href="factory_8h_source.html">factory.h</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aa3e873d6c512b552c15f9a6833802c3b"></a><!-- doxytag: member="infact::TypedMemberInitializer::Init" ref="aa3e873d6c512b552c15f9a6833802c3b" args="(StreamTokenizer &amp;st, Environment *env)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classinfact_1_1_typed_member_initializer.html">infact::TypedMemberInitializer</a>&lt; T &gt;::<a class="el" href="classinfact_1_1_typed_member_initializer.html#aa3e873d6c512b552c15f9a6833802c3b">Init</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classinfact_1_1_stream_tokenizer.html">StreamTokenizer</a> &amp;&#160;</td>
          <td class="paramname"><em>st</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classinfact_1_1_environment.html">Environment</a> *&#160;</td>
          <td class="paramname"><em>env</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initializes this instance based on the following tokens obtained from the specified <a class="el" href="classinfact_1_1_stream_tokenizer.html">StreamTokenizer</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">st</td><td>the stream tokenizer whose next tokens contain the information to initialize this data member </td></tr>
    <tr><td class="paramname">env</td><td>the current environment, to be modified by this member&rsquo;s initialization </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="classinfact_1_1_member_initializer.html#a4c12e33f71273d982c073dffdb08ff01">infact::MemberInitializer</a>.</p>

<p>Definition at line <a class="el" href="factory_8h_source.html#l00309">309</a> of file <a class="el" href="factory_8h_source.html">factory.h</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="ab786ff72080c4be52d8fac9de46850bb"></a><!-- doxytag: member="infact::TypedMemberInitializer::member_" ref="ab786ff72080c4be52d8fac9de46850bb" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">T* <a class="el" href="classinfact_1_1_typed_member_initializer.html">infact::TypedMemberInitializer</a>&lt; T &gt;::<a class="el" href="classinfact_1_1_typed_member_initializer.html#ab786ff72080c4be52d8fac9de46850bb">member_</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="factory_8h_source.html#l00328">328</a> of file <a class="el" href="factory_8h_source.html">factory.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/infact/<a class="el" href="factory_8h_source.html">factory.h</a></li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Apr 23 2014 10:07:53 for InFact by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
